<template>
    <div>
    <img class="thumbnail" v-for="imgInfo in imgArray" :key=imgInfo :src="getImgUrl(imgInfo)" alt="缩略图" style="width:100px;height:100px;display:inline;cursor:pointer" onClick="window.open(this.src)">
    </div>
</template>
<script>
import Vue from "vue";
export default {
    name: "MyImg",
    props:{
        CDN:{
            type:String,
            default:""
        },
        imgList:"",
    },
    computed:{
        imgArray(){
            return this.imgList.split(",");
        }
    },
    methods:{
        getImgUrl(imgInfo){
            return this.CDN+imgInfo;
        }
    },
}
</script>
  
